//
//  DLSportTrack.h
//  DLSport
//
//  Created by DongL on 2017/4/23.
//  Copyright © 2017年 DongL. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MAMapKit/MAMapKit.h>
#import "DLSportPolyline.h"
typedef enum : NSUInteger {
    DLSportStateContinue, //继续
    DLSportStatePause,  //暂停
    DLSportStateFinish,  //结束
} DLSportState;   //运动状态

typedef enum : NSUInteger {
    DLSportTypeRunning,  //跑步
    DLSportTypeRiding,  //骑行
    DLSportTypeWalking, //步行
} DLSportType;  //运动类型
@interface DLSportTrack : NSObject

@property (nonatomic, strong, readonly) MAPointAnnotation *startAnno;

//运动状态
@property (nonatomic, assign) DLSportState sportState;
//运动类型
@property (nonatomic, assign, readonly) DLSportType sportType;
//运动类型图片名
@property (nonatomic, copy, readonly) NSString *sportTypeImgName;

/**
 添加折线
 
 @param dest 折线终点
 @return 折线模型
 */
- (DLSportPolyline *)appendPolylineWithDest:(CLLocation *)dest;

- (instancetype)initWithSportType:(DLSportType)sportType withSportState:(DLSportState)state;

@end
